<?php
require_once(OC_App::getAppPath('company') . "/lib/quota.php");

if (!PFactory::isMasterUser()) {
   echo '您无权访问该资源';
   exit();
}

$order_id = JRequest::getInt('order_id', 0);

$model = new PCompanyModelQuota();
$order = $model->getReceiptPic($order_id);

if (!empty($order['receipt_pic'])) {
   echo '<a target="_blank" href="' . OC_Helper::linkTo('company','ajax/getorderimg.php') . '?img=' . $order['receipt_pic'] . '">' . $order['receipt_pic'] . '</a>';
}

